package cn.com.netedge.iot.common.dataobject;

import cn.com.netedge.iot.common.enums.ReceiveFrameTypeEnum;

public class ReceiveFrame {
    /**
     * 设备号
     */
    private String deviceNumber;
    /**
     * 设备类型
     */
    private int deviceType = -1;
    /**
     * 接收数据帧的类型，心跳、登录、上报、数据
     */
    private ReceiveFrameTypeEnum frameType;
    /**
     * 帧数据域数据
     */
    private byte[] receiveBuffer;
    private byte[] rawData;

    /**
     * 读指针
     */
    private int readIndex;
    /**
     * 路由名称
     */
    private String panid = "";

    private String ip;

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public int getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(int deviceType) {
        this.deviceType = deviceType;
    }

    public ReceiveFrameTypeEnum getFrameType() {
        return frameType;
    }

    public void setFrameType(ReceiveFrameTypeEnum frameType) {
        this.frameType = frameType;
    }

    public byte[] getReceiveBuffer() {
        return receiveBuffer;
    }

    public void setReceiveBuffer(byte[] receiveBuffer) {
        this.receiveBuffer = receiveBuffer;
    }

    public byte[] getRawData() {
        return rawData;
    }

    public void setRawData(byte[] rawData) {
        this.rawData = rawData;
    }

    public String getPanid() {
        return panid;
    }

    public void setPanid(String panid) {
        this.panid = panid;
    }

    public int getReadIndex() {
        return readIndex;
    }

    public void setReadIndex(int readIndex) {
        this.readIndex = readIndex;
    }
}
